Finish functions for typing text and pressing special keys