Fixed firefox keyup issue
Signed-off-by:Ed Torbett <edward@torbett.co.uk>