Added keyboard class for "realtime" key press checking