Get Keyboard Information

Keyboard information, mouse events

You are now following this Submission

This simple example assists you to understand how to get the keyboard information as well as mouse events.

Cite As

Fu-Sung Wang (2026). Get Keyboard Information (https://au.mathworks.com/matlabcentral/fileexchange/6605-get-keyboard-information), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: An Interactive Game Program

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

In last version I use "get(gcf, 'CurrentCharacter')" to catch the information; However, this is limited to numerals or alphabets. So a more generalized method is presented. keyinfo.dll, which can catch all the keyboard information and mouse events.