Whether I use the Ok button or hit enter, the cursor still goes to AI5.

Could something you are doing from your other thread getting in the way?

Remove some of the other code and then try. Again, it works for me by going directly to AI5 when hitting enter.