Instead of delete, shouldn't you be using backspace?


As for the enter key, I'm not able to reproduce this bug, so I'm not sure whats causing it.