Improve variable names.
Remove unused key press functions.
Fix compiler warnings.