improved keydown management
A lot of changes :
- Reordered the code
- Introducing a save system based on cookies
- Some bug's correction