fixed bug with keyClick caused by change of Keyboard to function.
changed keyClick to take triggering element as argument

keyClick now takes the triggering element as argument, and properly makes use of the caret_location to insert the character in the correct position.