#if wxUSE_GUI
+#if defined(__WXMSW__) || defined(__WXMAC__)
+ // Get the state of a key (true if pressed, false if not)
+ // This is generally most useful getting the state of
+ // Caps Lock, Num Lock and Scroll Lock...
+
+ // Note - There is a X11/GTK version which will be here
+ // soon
+ WXDLLEXPORT bool wxGetKeyState(wxKeyCode key);
+#endif
+
// Don't synthesize KeyUp events holding down a key and producing
// KeyDown events with autorepeat. On by default and always on
// in wxMSW.