Finalized working class (Keyboard Input)