A few cleanups and enhancements

I put in a few cleanups and changed the keyup handler to keydown so that it keeps scrolling down if a key is keeped pressed.
Everything for the Brackets project.