Prep. for repeating actions via holding key.
Abstract logic into discreet function.
Remove illegal continue statement.
Add missing function argument.
Increase rate at which actions can be repeated.
Decrease time that must elapse before an action can be repeated.
Clear line on 'enter'.
Add FIXME.
Keep track of cursor in prep. for END/HOME positioning etc.
Rename variable for clarity.
Define character to use when drawing the cursor.
Draw a blinking cursor.
Let arrows move the cursor position.
Draw the cursor in the right place when not at the end.
Add support for the delete key.
Fix backspace only working from end of line.
Shift cursor so it doesn't sit behind and sometimes get hidden by the current character.