2 things:
1 - dont check for isCreated all the time - do it after display creation, and no more.
2 - The reason keyboard is faster, is because it will be true each frame you render (if you hold button down). Mouse will only be true for 1 frame, and then false next frame unless you move it continually - but you can't move a mouse 1px 60fps.
If you want to move faster with the mouse, I suggest you multiply with the actually moved amount of pixels.