[fix] added keyboard control and renamed a few variables for clarity