Refactored method parameters to new style
Created enum for input handling key states