add an alert box and some animations on keydown