function keyHandler(event) {
                        switch (event.keyCode) {
                            case keyCode('Return'):
                                ok();
                                break;
                            case keyCode('Esc'):
                                cancel();
                                break;
                        }
                    }
Options
- width
- height
- message
- input (if left undefined there's no input element)