Converted to camel casing and added return flag for key presses represetning button up or down