I just noticed this line in the System Preferences app on OS X:
It says
変更するにはカギをクリックします。
Click the lock to make changes
Here, に is put after a verb's plain form. I have never seen this kind of usage before. As far as I know, に is a 格助詞. And 格助詞 don't connect to verbs. They only connect to 体言, which I think does not include verbs.
So i searched online to see if this is a usage that I am not aware of. And I found this. But that does not show any examples of this "verb plain form + に" usage.
It also says that
格助詞は、主に名詞について、その名詞と他の語(他の名詞、あるいは、述語としての動詞・形容詞)との意味関係を示します。
格助詞 is mainly put after a noun and shows the relationship between that noun and another noun, a verb used as a predicate or an adjective.
How can に be put after a verb's plain form? What is this usage?