tweaked for use with Korean language inputs