js extension: out click, up key down, and down key down