Fix memory allocation bug, checks, make cursor appear at the good
position, disable virtual keyboard Backspace key (use Tab instead
for now), handle Left and Right arrows on virtual keyboard.

Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>