Fix tab key behavior

Fixes #7