Added keyboard function

Hold down a key for a specific time period