Added Key object for input handling