allow arrow keys and inserting text before pereviously typed commands.