public void type( final int keyCode )
{
if( isValid( keyCode ) )
{
if( selection_.isEmpty() )
execute( new CharacterInsertion( selection_, text_, (char)keyCode, insertion_ ) );
else
execute( new SelectionReplacement( selection_, text_, (char)keyCode, insertion_ ) );
}
}