I know this is kind of old, but ...
Canvas Input is a great library that I use in my game:

As you can see, I can enter into the field and display it on the screen. It is easy to use:
var input = new CanvasInput({ canvas: document.getElementById("ctx"), x: 0, y: 0, fontSize: 18, fontFamily: 'Arial', fontColor: '#212121', fontWeight: 'bold', width: 200, padding: 8, borderWidth: 1, borderColor: '#000', borderRadius: 3, onsubmit: function() {
Disclaimer: I am in no way affiliated with CanvasInput and receive nothing for this message :)
Meinkraft
source share