began rework on keyboard input

 - key_t and key_state_t broken into different files
 - keys.cpp renamed to key_state.cpp
redid key input event triggering