added javascript keypress handler (not yet working..)