use DOM-Mode for more performance, handle keypresses better and serverside