The keyup and keydown events are both set to modify this flag variable so that it correctly reflects the current status of the key press. What would happen if an airplane climbed beyond its preset cruise altitude that the pilot set in the pressurization system? 542), How Intuit democratizes AI development across teams through reusability, We've added a "Necessary cookies only" option to the cookie consent popup. Dec 28, 2010 at 13:13. Any thoughts? A user may be using one keyboard layout while typing text in a different language. Returns a boolean value that is true if the Shift key was active when the key event was generated. Returns a string with the code value of the physical key represented by the event. Keyboard events are only generated by ,