Use this plugin, and you can use <input type='text'> in enchant.js games.