keydown -> keyup

keydown doesn't work in adobe/brackets, only keyup