Added a keyboard class to track key presses