Moved type declarations to separate header file
Resolved naming conflict with variable n and changed keyboard.keys to pointer array.